package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.Goods;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zjr
 * @version 1.0
 */
public interface GoodsDao {
    List<Goods> list(Integer page, Integer rows, String goodsName, Integer goodsTypeId);

    void saveGoods(Integer goodsId, Goods goods);

    void deleteById(Integer goodsId);

    Goods findByGoodsId(Integer goodsId);

    List<Goods> getNoInventoryQuantity(@Param("page") Integer page,@Param("rows") Integer rows,@Param("nameOrCode") String nameOrCode);

    List<Goods> getHasInventoryQuantity(@Param("page") Integer page,@Param("rows") Integer rows,@Param("nameOrCode") String nameOrCode);

    void insertGoods(Goods goods);
}
